/*
 * @Author: liuzibin
 * @Date: 2023-07-24 23:45:12
 * @Descroption: 订单发货
 */
const axios = require("axios");

async function deliverStore({ orderId, merchantToken }) {
  const response = await axios.post(
    `https://borderclear.cn/mer/store/order/delivery/${orderId}`,
    {
      delivery_type: 3,
      station_id: "",
      is_split: "0",
      delivery_name: "yunda",
    },
    {
      headers: {
        Accept: "application/json, text/plain, */*",
        Referer: "http://borderclear.cn/admin/merchant/list",
        "X-Token": merchantToken,
        "User-Agent":
          "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
        "Content-Type": "application/json;charset=UTF-8",
      },
    }
  );
  return true;
}

module.exports = deliverStore;
